package com.shop.cloud.model.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.shop.cloud.model.request.RestfulRequest;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author Alex
 */
@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class GetAreaListRequest extends RestfulRequest {

    private static final long serialVersionUID = -3286520204644035655L;
    
    public final static int TYPE_PROVINCE = 1;	// 省份
    public final static int TYPE_CITY = 2;	// 城市
    public final static int TYPE_REGION = 3;	// 地区

    @JsonProperty("type")
    @ApiModelProperty(value = "获取类型", example = "", required = false)
    private Long type;
    
    @JsonProperty("parentId")
    @ApiModelProperty(value = "父类型", example = "", required = false)
    private Long parentId;

	public Long getType() {
		return type;
	}

	public void setType(Long type) {
		this.type = type;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
}
